package com.practicario.mvc.controller
{
	import com.practicario.mvc.model.ServicesProxy;
	import com.practicario.mvc.view.ApplicationMediator;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
    
    public class ApplicationStartupCommand extends SimpleCommand implements ICommand
    {
        override public function execute(note:INotification):void    
        {
        	facade.registerProxy( new ServicesProxy());
        	facade.registerMediator(new ApplicationMediator( note.getBody()as Practicario));
        }
    }
}